* {
  padding: 0;
  margin: 0;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

@font-face {
  font-family: 'Rocher';
  src: url('./RocherColorGX.woff2') format('woff2');
}

@font-palette-values --pink {
  font-family: Rocher;
  base-palette: 1;
}

@font-palette-values --mint {
  font-family: Rocher;
  base-palette: 7;
}

.game {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.title {
  font-family: 'Rocher';
  font-size: 30px;
  font-palette: --mint;
  text-align: center;
}

.game-box {
  position: relative;
  width: 792px;
  height: 384px;
}

.joy-left {
  position: absolute;
  width: 20%;
  height: 100%;
  background: #00A39A;
  border-top-left-radius: 90px;
  border-bottom-left-radius: 90px;
  box-shadow: inset 5px 5px 10px #00A39A, inset 7px 15px 5px -5px rgba(255,255,255,.6), inset 10px -35px 8px -25px rgba(0,0,0,.4), inset 12px 0px 10px -5px rgba(0,0,0,.4);
}

.bumper-left {
  position: absolute;
  width: 100%;
  height: 50%;
  top: -3px;
  left: -3px;
  background: rgba(0,0,0,.7);
  border-top-left-radius: 90px;
  z-index: -1;
  -webkit-clip-path: polygon(0 0, 80% 0, 80% 40%, 0 30%);
  clip-path: polygon(0 0, 80% 0, 80% 40%, 0 30%);
}

.joy-right {
  position: absolute;
  right: 0;
  width: 20%;
  height: 100%;
  background: #00A39A;
  border-top-right-radius: 90px;
  border-bottom-right-radius: 90px;
  box-shadow: inset -5px 5px 10px #00A39A, inset -7px 15px 5px -5px rgba(255,255,255,.4), inset -10px -35px 8px -25px rgba(0,0,0,.3), inset -14px 0px 10px -5px rgba(0,0,0,.3);
}

.bumper-right {
  position: absolute;
  width: 100%;
  height: 50%;
  top: -3px;
  right: -3px;
  background: rgba(0,0,0,.7);
  border-top-right-radius: 90px;
  z-index: -1;
  -webkit-clip-path: polygon(100% 0, 100% 30%, 20% 40%, 20% 0);
  clip-path: polygon(100% 0, 100% 30%, 20% 40%, 20% 0);
}

.screen-outer {
  position: absolute;
  width: 60%;
  height: 100%;
  left: 20%;
  border-left: 1px solid black;
  border-right: 1px solid black;
  background: linear-gradient(to bottom, #2E3235, #414344);
  box-shadow: inset 0 15px 20px -10px rgba(255,255,255,.6), inset 0 -21px 20px -10px rgba(0,0,0,.8);
}

.screen-inner {
  position: absolute;
  width: 93%;
  height: 94%;
  background: black;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 15px;
  box-shadow: inset 0 2px 0 -1px rgba(255,255,255,.6), inset 0 -1px 0 -1px white;
}

#nes {
  position: absolute;
  width: 362px;
  height: 340px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
}

.select-btn {
  position: absolute;
  top: 18%;
  left: 20%;
  width: 25%;
  height: 3%;
  background: #3a3a3a;
  border-radius: 3px;
  box-shadow: inset 1px 1px 1px rgba(255,255,255,.4), 0 0 0 1px #2b2b2b, 1px 2px 10px rgba(0,0,0,.5);
}

.select-btn::after {
  content: 'SELECT';
  position: absolute;
  top: 130%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-family: 'Rocher';
  font-palette: --pink;
}

.start-btn {
  position: absolute;
  top: 18%;
  right: 20%;
  width: 25%;
  height: 3%;
  background: #3a3a3a;
  border-radius: 3px;
  box-shadow: inset 1px 1px 1px rgba(255,255,255,.4), 0 0 0 1px #2b2b2b, 1px 2px 10px rgba(0,0,0,.5);
}

.start-btn::after {
  content: 'START';
  position: absolute;
  top: 130%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-family: 'Rocher';
  font-palette: --pink;
}

.reset-btn {
  position: absolute;
  top: 30%;
  left: 33%;
  width: 35%;
  height: 3%;
  background: #3a3a3a;
  border-radius: 3px;
  box-shadow: inset 1px 1px 1px rgba(255,255,255,.4), 0 0 0 1px #2b2b2b, 1px 2px 10px rgba(0,0,0,.5);
}

.reset-btn::after {
  content: 'RESET';
  position: absolute;
  top: 130%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-family: 'Rocher';
  font-palette: --pink;
}

.dpad-container {
  position: absolute;
  top: 52%;
  left: 8%;
  width: 80%;
  height: 34%;
}

.dpad-x {
  position: absolute;
  width: 34%;
  height: 34%;
  background: #262525;
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
}

.dpad-x::after {
  font-family: "Arial";
  content: 'X';
  font-size: 16px;
  color: rgba(255,255,255,.8);
  position: absolute;
  width: 87%;
  height: 84%;
  background: linear-gradient(to top, #424040, #5b5959);
  border-radius: 50%;
  top: 6.5%;
  left: 6%;
  text-align: center;
  line-height: 2.4;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.5), 0 3px 15px rgba(0,0,0,.8);
}

.dpad-a {
  position: absolute;
  width: 34%;
  height: 34%;
  background: #262525;
  border-radius: 50%;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.dpad-a::after {
  font-family: "Arial";
  content: 'A';
  font-size: 16px;
  color: rgba(255,255,255,.8);
  position: absolute;
  width: 87%;
  height: 84%;
  background: linear-gradient(to top, #424040, #5b5959);
  border-radius: 50%;
  top: 6.5%;
  left: 6%;
  text-align: center;
  line-height: 2.4;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.5), 0 3px 15px rgba(0,0,0,.8);
}

.dpad-b {
  position: absolute;
  width: 34%;
  height: 34%;
  background: #262525;
  border-radius: 50%;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

.dpad-b::after {
  font-family: "Arial";
  content: 'B';
  font-size: 16px;
  color: rgba(255,255,255,.8);
  position: absolute;
  width: 87%;
  height: 84%;
  background: linear-gradient(to top, #424040, #5b5959);
  border-radius: 50%;
  top: 6.5%;
  left: 6%;
  text-align: center;
  line-height: 2.4;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.5), 0 3px 15px rgba(0,0,0,.8);
}

.dpad-y {
  position: absolute;
  width: 34%;
  height: 34%;
  background: #262525;
  border-radius: 50%;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.dpad-y::after {
  font-family: "Arial";
  content: 'Y';
  font-size: 16px;
  color: rgba(255,255,255,.8);
  position: absolute;
  width: 87%;
  height: 84%;
  background: linear-gradient(to top, #424040, #5b5959);
  border-radius: 50%;
  top: 6.5%;
  left: 6%;
  text-align: center;
  line-height: 2.4;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.5), 0 3px 15px rgba(0,0,0,.8);
}

.game-name {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 80%;
  transform: translateX(-50%);
  font-family: 'Rocher';
  font-size: 16px;
  font-palette: --pink;
}

.game-select {
  width: 50%;
  height: 6%;
  position: absolute;
  top: 17%;
  left: 10%;
  overflow: hidden;
  background: transparent;
  border: none;
  outline: none;
  background: #3a3a3a;
  color: rgba(255,255,255,.8);
  border-radius: 3px;
  box-shadow: inset 1px 1px 1px rgba(255,255,255,.4), 0 0 0 1px #2b2b2b, 1px 2px 10px rgba(0,0,0,.5);
  text-align: center;
  appearance:none;
  -moz-appearance:none;
  -webkit-appearance:none;
}

.analog {
  position: absolute;
  top: 56%;
  left: 16%;
  width: 110px;
  height: 110px;
  background: linear-gradient(to bottom, #5e6367 0%,#141516 100%);
  border-radius: 50%;
  box-shadow: 0 -0.5px 1px 2px rgba(20,21,22,.9), 0 -2px 2px 2px var(--joycon-right), 0 1px 1px 1px #141516, 0 8px 35px 1px rgba(0,0,0,.5);
}

.hint {
  color:#00A39A;
  text-align: center;
  margin-top: 10px;
  text-shadow: 0 1px 1px rgba(255,255,255,.5);
  font-size: 16px;
}

.hint em {
  color: #5b5959;
  font-style: normal;
  font-size: 13px;
  border: 1px solid #5b5959;
  padding: 0 4px;
  border-radius: 4px;
}